Finite element analysis formulation